//
//  RecommendTableViewCell.m
//  kr_36
//
//  Created by lmt on 16/1/26.
//  Copyright © 2016年 www.lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "RecommendTableViewCell.h"

@implementation RecommendTableViewCell

- (void)dealloc
{
    [_title release];
    [_img release];
    [_name release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.img = [[UIImageView alloc] init];
        [self.contentView addSubview:_img];
        [_img release];
        
        self.name = [[UILabel alloc] init];
        [self.img addSubview:_name];
        [_name release];
        
        self.title = [[UILabel alloc] init];
        [self.contentView addSubview:_title];
        [_title release];
        
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    _img.frame = CGRectMake(5, 5, self.contentView.frame.size.width - 10, 200);
    
    _name.frame = CGRectMake(5, 5, 150, 30);
    _name.textColor = [UIColor whiteColor];
    
    _title.frame = CGRectMake(5, 205, _img.frame.size.width, 40);
    _title.font = [UIFont systemFontOfSize:15];
    _title.numberOfLines = 0;
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
